package com.tan.lbs.entity;

public class ObjectTriggerIndex {
	private String conditionType;
	private String gameObjectID;
	
	public ObjectTriggerIndex(String gameObjectID,String conditionType) {
		this.conditionType = conditionType;
		this.gameObjectID = gameObjectID;
	}

	@Override
	public boolean equals(Object o) {
		if (o == null)
			return false;
		if (o == this)
			return true;
		if (o instanceof ObjectTriggerIndex) {
			ObjectTriggerIndex other = (ObjectTriggerIndex) o;
			if (other.getConditionType().equals(conditionType)
					&& other.getGameObjectID().equals(gameObjectID)) {
				return true;
			} else {
				return false;
			}
		} else
			return false;

	}
	
	@Override
	public int hashCode() {
		  int hash = 7;
		  hash = 31 * hash + conditionType.hashCode();
		  hash = 31 * hash + gameObjectID.hashCode();
		return hash;
		
	}

	public String getConditionType() {
		return conditionType;
	}

	public void setConditionType(String conditionType) {
		this.conditionType = conditionType;
	}

	public String getGameObjectID() {
		return gameObjectID;
	}

	public void setGameObjectID(String gameObjectID) {
		this.gameObjectID = gameObjectID;
	}
}
